<template>
    <view>
        <template v-for="(item, index) in CameraParamExList">
            <j-cell-group :key="index">
                <j-cell-card :title="'通道' + index" :show="false" :is-touch="false" border style="background: #f5f7fb">
                    <j-cell title="AeMeansure" :tips="item.AeMeansure" :more="false"></j-cell>
                    <j-cell title="AutomaticAdjustment" :tips="item.AutomaticAdjustment" :more="false"></j-cell>

                    <j-cell-card title="BroadTrends" :show="false" :is-touch="false" border style="background: #f5f7fb">
                        <j-cell title="AutoGain" :tips="item.BroadTrends.AutoGain" :more="false"></j-cell>
                        <j-cell title="Gain" :tips="item.BroadTrends.Gain" :more="false"></j-cell>
                    </j-cell-card>

                    <j-cell title="CorridorMode" :tips="item.CorridorMode" :more="false"></j-cell>
                    <j-cell title="Dis" :tips="item.Dis" :more="false"></j-cell>
                    <j-cell title="ExposureTime" :tips="item.ExposureTime" :more="false"></j-cell>
                    <j-cell title="Ldc" :tips="item.Ldc" :more="false"></j-cell>
                    <j-cell title="LightRestrainLevel" :tips="item.LightRestrainLevel" :more="false"></j-cell>
                    <j-cell title="LowLuxMode" :tips="item.LowLuxMode" :more="false"></j-cell>
                    <j-cell title="IRCUTMode" :tips="item.IRCUTMode" :more="false"></j-cell>
                    <j-cell title="PreventOverExpo" :tips="item.PreventOverExpo" :more="false"></j-cell>
                    <j-cell title="SoftPhotosensitivecontrol" :tips="item.SoftPhotosensitivecontrol" :more="false"></j-cell>
                    <j-cell title="Style" :tips="item.Style" :more="false"></j-cell>
                </j-cell-card>
            </j-cell-group>
        </template>
    </view>
</template>

<script>
export default {
    data() {
        return {
            token: '',
            CameraParamExList: []
        };
    }
    /**
     * 生命周期函数--监听页面加载
     */,
    onLoad: function (options) {
        console.log(options);
		this.token = options.token
		this.getconfig();
    },
    /**
     * 生命周期函数--监听页面初次渲染完成
     */
    onReady: function () {},
    /**
     * 生命周期函数--监听页面显示
     */
    onShow: function () {},
    /**
     * 生命周期函数--监听页面隐藏
     */
    onHide: function () {},
    /**
     * 生命周期函数--监听页面卸载
     */
    onUnload: function () {},
    /**
     * 页面相关事件处理函数--监听用户下拉动作
     */
    onPullDownRefresh: function () {},
    /**
     * 页面上拉触底事件的处理函数
     */
    onReachBottom: function () {},
    /**
     * 用户点击右上角分享
     */
    onShareAppMessage: function () {},
    methods: {
        getconfig() {
            uni.showLoading();
            let token = this.token;
            let data = {
                Name: 'Camera.ParamEx'
            };
            getApp().globalData.api.getconfig(data, token, (result) => {
                uni.hideLoading({
                    success: (res) => {
                        console.log(result);
                        this.CameraParamExList = result['Camera.ParamEx']
                    }
                });
            });
        }
    }
};
</script>
<style></style>
